﻿/*------------------------------------------------
// File Description: LongiQrCodeConfig DataBase Entity
// Author:			 Crane
// Create Time:		 2021-05-18 11:33:44
//------------------------------------------------*/

using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace IOA.MES.DataAccess.Entity
{
    /// <summary>
    /// 隆基二维码配置
    /// </summary>
    [Table(nameof(LongiQrCodeConfig))]
    public class LongiQrCodeConfig : BaseEntity
    {
        private string _salt = string.Empty;
        private string _version = string.Empty;

        #region Public Property

        ///<Summary>
        /// 盐值
        ///</Summary>
        public string Salt
        {
            get { return string.IsNullOrWhiteSpace(_salt) ? string.Empty : _salt; }
            set { _salt = value; }
        }

        ///<Summary>
        /// 版本
        ///</Summary>
        public string Version
        {
            get { return string.IsNullOrWhiteSpace(_version) ? string.Empty : _version; }
            set { _version = value; }
        }
        #endregion
    }

    public partial class MESContext
    {
        /// <summary>
        /// 隆基二维码配置
        /// </summary>
        public virtual DbSet<LongiQrCodeConfig> LongiQrCodeConfigs { get; set; }
    }
}